<div class="users-box">
<?php if(!Yii::app()->user->isGuest):?>
<span>Xin chào <a style="color: #FF0" href="<?php echo Yii::app()->createUrl('/user/profile/edit', array('id'=>Yii::app()->user->id));?>"><?php echo Yii::app()->user->username;?></a> | <a href="<?php echo Yii::app()->createUrl('/user/logout');?>">Thoát</a></span>
<?php else:?>
<a href="<?php echo Yii::app()->createurl('/user/registration');?>">Đăng ký</a> | <a href="<?php echo Yii::app()->createUrl('/user/login');?>">Đăng nhập</a>
<?php endif;?>
</div>